package com.che.software.testato.domain.entity.search;

import java.io.Serializable;

/**
 * Class representing a script search.
 * 
 * @author Clement HELIOU (clement.heliou@che-software.com).
 * @copyright Che Software.
 * @license GNU General Public License.
 * @see Serializable
 * @since July, 2011.
 * 
 *        This file is part of Testato.
 * 
 *        Testato is free software: you can redistribute it and/or modify it
 *        under the terms of the GNU General Public License as published by the
 *        Free Software Foundation, either version 3 of the License, or (at your
 *        option) any later version.
 * 
 *        Testato is distributed in the hope that it will be useful, but WITHOUT
 *        ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 *        FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
 *        for more details.
 * 
 *        You should have received a copy of the GNU General Public License
 *        along with Testato. If not, see <http://www.gnu.org/licenses/>.
 * 
 *        Testato's logo is a creation of Arrioch
 *        (http://arrioch.deviantart.com/) and it's distributed under the terms
 *        of the Creative Commons License.
 */
public class ScriptSearch implements Serializable {

	/**
	 * Constants.
	 */
	private static final long serialVersionUID = 4810421346199269544L;

	/**
	 * Members.
	 */
	private Boolean selected;
	private Integer depth, iterationId, parentHierarchyId, parentScriptItem;

	/**
	 * Default builder.
	 */
	public ScriptSearch() {
	}

	/**
	 * Builder from fields.
	 * 
	 * @param parentHierarchyId the parent hierarchy id.
	 */
	public ScriptSearch(Integer parentHierarchyId) {
		super();
		this.parentHierarchyId = parentHierarchyId;
	}

	/**
	 * Getter for the private field value parentHierarchyId.
	 * 
	 * @return the parentHierarchyId field value.
	 */
	public Integer getParentHierarchyId() {
		return parentHierarchyId;
	}

	/**
	 * Setting a value to the parentHierarchyId field.
	 * 
	 * @param parentHierarchyId the value to set.
	 */
	public void setParentHierarchyId(Integer parentHierarchyId) {
		this.parentHierarchyId = parentHierarchyId;
	}

	/**
	 * Getter for the private field value depth.
	 * 
	 * @return the depth field value.
	 */
	public Integer getDepth() {
		return depth;
	}

	/**
	 * Setting a value to the depth field.
	 * 
	 * @param depth the value to set.
	 */
	public void setDepth(Integer depth) {
		this.depth = depth;
	}

	/**
	 * Getter for the private field value parentScriptItem.
	 * 
	 * @return the parentScriptItem field value.
	 */
	public Integer getParentScriptItem() {
		return parentScriptItem;
	}

	/**
	 * Setting a value to the parentScriptItem field.
	 * 
	 * @param parentScriptItem the value to set.
	 */
	public void setParentScriptItem(Integer parentScriptItem) {
		this.parentScriptItem = parentScriptItem;
	}

	/**
	 * Getter for the private field value iterationId.
	 * 
	 * @return the iterationId field value.
	 */
	public Integer getIterationId() {
		return iterationId;
	}

	/**
	 * Setting a value to the iterationId field.
	 * 
	 * @param iterationId the value to set.
	 */
	public void setIterationId(Integer iterationId) {
		this.iterationId = iterationId;
	}

	/**
	 * Getter for the private field value selected.
	 * 
	 * @return the selected field value.
	 */
	public Boolean getSelected() {
		return selected;
	}

	/**
	 * Setting a value to the selected field.
	 * 
	 * @param selected the value to set.
	 */
	public void setSelected(Boolean selected) {
		this.selected = selected;
	}
}